//
// Created by iti on 2023/8/1.
//

#ifndef __RS485_H__
#define __RS485_H__

#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
typedef struct
{
    uint8_t pucSend_Buffer[40];     //发送缓存指针
    uint8_t pucRec_Buffer[40];     //接收缓存指针
    uint8_t It_Buffer[12];//中断中包含回车的接收缓存


    /* data */
} UART_t;
extern UART_t UART1;

void RS485_Set_SendMode(void);
void RS485_Set_RecMode(void);

#ifdef __cplusplus
}
#endif

#endif /* __USART_H__ */
